﻿using IGrpcServer;
using MagicOnion;
using MagicOnion.Server;

namespace GrpcServer
{
    public class ComputeData : ServiceBase<IComputeData>, IComputeData
    {
        public async UnaryResult<string> SumAsync(int x, int y) => await Task.FromResult((x + y).ToString());

        public async UnaryResult<string> GetResultAsync()=>await Task.FromResult("welcome to BeiJing!");
    }
}